package com.example.pojo;

public class PageBean {
    private int page; // 第几页
    private int pageSize; // 每页记录数
    private int start;  // 起始页

    public PageBean() {
    }

    public PageBean(int page, int pageSize, int start) {
        this.page = page;
        this.pageSize = pageSize;
        this.start = start;
    }

    public PageBean(int page, int pageSize) {
        super();
        this.page = page;
        this.pageSize = pageSize;
    }

    public int getPage() {
        return page;
    }
    public void setPage(int page) {
        this.page = page;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getStart() {
        return (page-1)*pageSize;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "page=" + page +
                ", pageSize=" + pageSize +
                ", start=" + start +
                '}';
    }
}
